//引入axios
import request from '@/utils/request';
import type { InputNumberEmits } from 'element-plus';

//枚举地址
enum API {
    //获取SKU列表接口
    SKUURL = "/admin/product/list/",
    //获取SKU数据
    SKUINFO="/admin/product/getSkuById/",
    //删除SKU
    DELETESKU = "/admin/product/deleteSku/"

}
//获取SKU列表
export const reqSkuList = (page: number, limit: number) => request.get(API.SKUURL + `${page}/${limit}`);

//获取SKU详情
export const reqSkuInfo = (skuId:number)=>request.get(API.SKUINFO+skuId);

//删除SKU
export const reqDeleteSku = (skuId:number)=>request.delete(API.DELETESKU+skuId)